FEXP Solver  1.0.0.0
CFEXPBaseConvers Class Reference

General functions for various conversions. More...

#include <FEXPCommon.h>

Static Public Member Functions

static std::string WCharToStringASCII (const wchar_t *toconvert, const char vicchar=FEXPCOMMON_QUEST_MARK_CHAR, std::locale &local=std::locale())
 
static std::vector< std::string > SplitString (const std::string &str, const std::string &delim)
 
template<typename TValue >
static std::enable_if< std::is_arithmetic< TValue >::value, TValue >::type StringToNumber (const std::string &strnum)
 
static std::string & StrLtrim (std::string &str)
 
static std::string & StrRtrim (std::string &str)
 
static std::string & StrTrim (std::string &str)
 
template<typename TValue >
static std::enable_if< std::is_arithmetic< TValue >::value, std::string >::type NumberToString (TValue value)
 
template<typename TValue >
static std::enable_if< std::is_floating_point< TValue >::value, int >::type Compare (TValue value1, TValue value2, TValue eps=FEXPCOMMON_DEFAULT_VALUE)
 
template<typename TValue >
static std::enable_if< std::is_floating_point< TValue >::value, int >::type Compare (TValue value1, TValue value2, TValue eps)
 

Detailed Description

General functions for various conversions.

Member Function Documentation

◆ Compare() [1/2]

template<typename TValue >
static std::enable_if<std::is_floating_point<TValue>::value, int>::type CFEXPBaseConvers::Compare ( TValue  value1,
TValue  value2,
TValue  eps = FEXPCOMMON_DEFAULT_VALUE 
)
static

◆ Compare() [2/2]

template<typename TValue >
static std::enable_if<std::is_floating_point<TValue>::value, int>::type CFEXPBaseConvers::Compare ( TValue  value1,
TValue  value2,
TValue  eps 
)
static

◆ NumberToString()

template<typename TValue >
std::enable_if< std::is_arithmetic< TValue >::value, std::string >::type CFEXPBaseConvers::NumberToString ( TValue  value)
static

◆ SplitString()

std::vector< std::string > CFEXPBaseConvers::SplitString ( const std::string &  str,
const std::string &  delim 
)
static

◆ StringToNumber()

template<typename TValue >
std::enable_if< std::is_arithmetic< TValue >::value, TValue >::type CFEXPBaseConvers::StringToNumber ( const std::string &  strnum)
static

◆ StrLtrim()

std::string & CFEXPBaseConvers::StrLtrim ( std::string &  str)
static

◆ StrRtrim()

std::string & CFEXPBaseConvers::StrRtrim ( std::string &  str)
static

◆ StrTrim()

std::string & CFEXPBaseConvers::StrTrim ( std::string &  str)
static

◆ WCharToStringASCII()

std::string CFEXPBaseConvers::WCharToStringASCII ( const wchar_t *  toconvert,
const char  vicchar = FEXPCOMMON_QUEST_MARK_CHAR,
std::locale &  local = std::locale() 
)
static

The documentation for this class was generated from the following files: